package cn.ibizlab.odoo.core.odoo_bus.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_bus.domain.Bus_bus;
import cn.ibizlab.odoo.core.odoo_bus.filter.Bus_busSearchContext;

/**
 * 实体[Bus_bus] 服务对象接口
 */

public interface IBus_busService{
     Bus_bus get(Integer id) ;
     Bus_bus get(Bus_bus bus_bus) ;
     boolean update(Bus_bus bus_bus) ;
     void updateBatch(List<Bus_bus> bus_buss, int batchSize) ;
     boolean remove(Integer id) ;
     void createBatch(List<Bus_bus> bus_buss, int batchSize) ;
     boolean create(Bus_bus bus_bus) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Bus_bus> searchDefault(Bus_busSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Bus_bus> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Bus_bus> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Bus_bus convert2Domain(cn.ibizlab.odoo.core.client.model.Ibus_bus model ,Bus_bus domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ibus_bus convert2Model(Bus_bus domain , cn.ibizlab.odoo.core.client.model.Ibus_bus model);

}
